home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / answrbok / 8_5.lha / 8_5 / scanf.c < prev    next >
Text File  |  1993-08-08  |  344b  |  19 lines

  1. * Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */
  2. * The C++ Answer Book */
  3. * Tony Hansen */
  4. * All rights reserved. */
  5. / read a set of arguments from stdin
  6. nt scanf(const char *fmt, ...)
  7.  
  8.    if (stdin->mode == input)
  9. {
  10. va_list ap;
  11. va_start(ap, fmt);
  12. int ret = vscanf(fmt, ap);
  13. va_end(ap);
  14. return ret;
  15. }
  16.  
  17.    return EOF;
  18.  
  19.